package edu.xust.entity;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 
 */
@JsonIgnoreProperties(value = {"handler","serialVersionUID"})
public class PsOrder implements Serializable {
    private String psId;

    private String psWid;

    private String psArea;

    private String psDetails;

    private String psStatus;

    private Date psCreatetime;

    private Date psFinishtime;

    private String psPid;

    private String psType;

    private String psImgs;

    private static final long serialVersionUID = 1L;

    public String getPsId() {
        return psId;
    }

    public void setPsId(String psId) {
        this.psId = psId;
    }

    public String getPsWid() {
        return psWid;
    }

    public void setPsWid(String psWid) {
        this.psWid = psWid;
    }

    public String getPsArea() {
        return psArea;
    }

    public void setPsArea(String psArea) {
        this.psArea = psArea;
    }

    public String getPsDetails() {
        return psDetails;
    }

    public void setPsDetails(String psDetails) {
        this.psDetails = psDetails;
    }

    public String getPsStatus() {
        return psStatus;
    }

    public void setPsStatus(String psStatus) {
        this.psStatus = psStatus;
    }

    public Date getPsCreatetime() {
        return psCreatetime;
    }

    public void setPsCreatetime(Date psCreatetime) {
        this.psCreatetime = psCreatetime;
    }

    public Date getPsFinishtime() {
        return psFinishtime;
    }

    public void setPsFinishtime(Date psFinishtime) {
        this.psFinishtime = psFinishtime;
    }

    public String getPsPid() {
        return psPid;
    }

    public void setPsPid(String psPid) {
        this.psPid = psPid;
    }

    public String getPsType() {
        return psType;
    }

    public void setPsType(String psType) {
        this.psType = psType;
    }

    public String getPsImgs() {
        return psImgs;
    }

    public void setPsImgs(String psImgs) {
        this.psImgs = psImgs;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        PsOrder other = (PsOrder) that;
        return (this.getPsId() == null ? other.getPsId() == null : this.getPsId().equals(other.getPsId()))
            && (this.getPsWid() == null ? other.getPsWid() == null : this.getPsWid().equals(other.getPsWid()))
            && (this.getPsArea() == null ? other.getPsArea() == null : this.getPsArea().equals(other.getPsArea()))
            && (this.getPsDetails() == null ? other.getPsDetails() == null : this.getPsDetails().equals(other.getPsDetails()))
            && (this.getPsStatus() == null ? other.getPsStatus() == null : this.getPsStatus().equals(other.getPsStatus()))
            && (this.getPsCreatetime() == null ? other.getPsCreatetime() == null : this.getPsCreatetime().equals(other.getPsCreatetime()))
            && (this.getPsFinishtime() == null ? other.getPsFinishtime() == null : this.getPsFinishtime().equals(other.getPsFinishtime()))
            && (this.getPsPid() == null ? other.getPsPid() == null : this.getPsPid().equals(other.getPsPid()))
            && (this.getPsType() == null ? other.getPsType() == null : this.getPsType().equals(other.getPsType()))
            && (this.getPsImgs() == null ? other.getPsImgs() == null : this.getPsImgs().equals(other.getPsImgs()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getPsId() == null) ? 0 : getPsId().hashCode());
        result = prime * result + ((getPsWid() == null) ? 0 : getPsWid().hashCode());
        result = prime * result + ((getPsArea() == null) ? 0 : getPsArea().hashCode());
        result = prime * result + ((getPsDetails() == null) ? 0 : getPsDetails().hashCode());
        result = prime * result + ((getPsStatus() == null) ? 0 : getPsStatus().hashCode());
        result = prime * result + ((getPsCreatetime() == null) ? 0 : getPsCreatetime().hashCode());
        result = prime * result + ((getPsFinishtime() == null) ? 0 : getPsFinishtime().hashCode());
        result = prime * result + ((getPsPid() == null) ? 0 : getPsPid().hashCode());
        result = prime * result + ((getPsType() == null) ? 0 : getPsType().hashCode());
        result = prime * result + ((getPsImgs() == null) ? 0 : getPsImgs().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", psId=").append(psId);
        sb.append(", psWid=").append(psWid);
        sb.append(", psArea=").append(psArea);
        sb.append(", psDetails=").append(psDetails);
        sb.append(", psStatus=").append(psStatus);
        sb.append(", psCreatetime=").append(psCreatetime);
        sb.append(", psFinishtime=").append(psFinishtime);
        sb.append(", psPid=").append(psPid);
        sb.append(", psType=").append(psType);
        sb.append(", psImgs=").append(psImgs);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}